import { PatientInfoData } from "./patient"

//处方诊断
export class DiagnosisData {
	icdCode ?: string
	icdName ?: string
}

//处方疾病选择
export class DiseaseData {
	diseaseCode ?: string
	diseaseName ?: string
	pinyinCode ?: string
	wubiCode ?: string
	categoryCode ?: string
	categoryName ?: string
	children ?: DiseaseData[]
}

//处方药品
export class DrugData {
	id ?: number
	drugId ?: number
	productId ?: number
	drugName ?: string
	saleName ?: string
	categoryName ?: string
	drugFrequency ?: string
	drugRoute ?: string
	perDosage ?: string
	perDosageUnit ?: string
	drugUnit ?: string
	picUrl ?: string
	drugBaseUnit ?: string
	useDays ?: number
	dosageTotal ?: number
	otcFlag ?: boolean
	remark ?: string
	packageUnit ?: string
	drugSpecifications ?: string
	producer ?: string
	drugPackage ?: any
	isAutoMapping ?: boolean
	drugFrequencyType ?: any
	price ?: number
	number ?: number
	isOnSale ?: boolean
	type ?: string
	maximumPescription ?: number
	drugShortageReminder ?: string
	prescriptionId ?: string
	surplusRefundNum ?: number
	goodsNumber ?: number
	doseLabeling ?: number //剂量标记 1-单次 2-多次
	doctorRemark ?: string[]
	drugAutoMappingPoList ?: DrugAutoMappingData[]
}

//药品用法用量自动映射
export class DrugAutoMappingData {
	drugMedicationTimeType ?: number
	drugMedicationTimeName ?: string
	drugPerDosageType ?: number
	drugPerDosageName ?: string
	drugPerDosage ?: number
	perDosageUnit ?: string
}

//药品药房分类数据
export class DrugPharmacyParentData {
	code ?: string
	name ?: string
	parentCode ?: string
	deleted ?: boolean
	createTime ?: string
	updateTime ?: string
	lockFlag ?: string
	delFlag ?: string
	productDrugPos ?: DrugData[]

}

//药品药房分类子集
export class DrugPharmacyChildData {
	code ?: string
	name ?: string
	parentCode ?: string
	deleted ?: boolean
	createTime ?: string
	updateTime ?: string
	lockFlag ?: string
	delFlag ?: string
	productDrugPos ?: DrugData[]
}

//处方数据
export class PrescriptionData {
	prescriptionId ?: string
	patientInfo ?: PatientInfoData
	visits ?: string
	conditionDescription ?: string
	prescriptionStatus ?: string
	payStatus ?: string
	createTime ?: string
	diseasesHistory ?: string
	recipeType ?: string
	diagnosis ?: DiagnosisData[]
	drugs ?: DrugData[]
	serviceCode ?: string
	serviceType ?: string
	serviceClass ?: string
	serviceClassName ?: string
	displayPrescriptionPngUri ?: string
	pharmacistName ?: string
	diagnosisRemark ?: string
	servicePrice ?: number
	rationalDrug ?: string
	qrCodeImg ?: string
	registrationPrice ?: string
	patientNameList ?: string[]
	isSpeedPrescription ?: boolean
	isDialogPayServiceOrder ?: boolean
	isDialogNotPrescription ?: boolean
	isDialogNotOffline ?: boolean
	submitPrescriptionTime ?: string
	openPrescriptionRemind ?: string
	orderShippingStatus ?: string
	contractNo ?: string
	signContractUrl ?: string
}

//处方现病史
export class PrescriptionPresentIllnessData {
	id ?: number
	presentIllnessTitle ?: string
	presentIllnessContent ?: string
}

//处方提交结果数据
export class PrescriptionSubmitResultData {
	rationStatus ?: number
	invokeStatus ?: number
	invokeMessage ?: string
	rationInfos ?: PrescriptionRationInfoData[]
}

//处方合理用药信息
export class PrescriptionRationInfoData {
	drugName ?: string
	errorInfo ?: string
	advice ?: string
	severity ?: any
}

//处方模板数据
export class PrescriptionTemplateData {
	prescriptionModelId ?: string
	diseasesHistory ?: string
	diagnosis ?: DiagnosisData[]
	drugs ?: DrugData[]
	createTime ?: string
}

//处方物流信息
export class PrescriptionTrackingInfoData {
	prescriptionId ?: string
	expressName ?: string
	trackingStatus ?: string
	trackingDate ?: string
	trackingInfo ?: PrescriptionTrackingInfoDetailData[]
}

//处方物流信息详情
export class PrescriptionTrackingInfoDetailData {
	mailno ?: string
	accept_address ?: string
	accept_date ?: string
	remark ?: string
	opcode ?: string
	accept_time ?: string
	accept_totaltime ?: string
}